﻿/*  Write a program that reads two arrays from the console and compares them element by element.*/

using System;

    class ComparingTwoArrays
    {
        static void Main()
        {
            int n = int.Parse(Console.ReadLine());
            int[] arrayFirst = new int[n];
            int[] arraySecond = new int[n];

            for (int i = 0; i < arrayFirst.Length; i++)
            {
                Console.Write("Please enter element of the first array: ");
                arrayFirst[i] =int.Parse(Console.ReadLine());
            }
            for (int i = 0; i < arraySecond.Length; i++)
            {
                Console.Write("Please enter element of the second array: ");
                arraySecond[i] = int.Parse(Console.ReadLine());
            }
            for (int i = 0; i < arrayFirst.Length; i++)
            {
                if (arrayFirst[i]==arraySecond[i])
                {
                    continue;
                }
                else
                {
                    Console.WriteLine("The two arrays are not equal."); return;
                }
            }
            Console.WriteLine("The two arrays are equal.");
        }
    }

